package yifeng.gui;

import java.util.List;

import javax.swing.JButton;

public class Mover extends Thread {
	private List<JButton> floorList;
	
	public Mover(Elevator ele) {
		super();
		this.floorList = ele.getFloorList();
	}
	
	
	@Override
	public void run() {
		while(true){
			lsleep(50);
		}
	}
	
	
	private void lsleep(int millisec) {
		try {
			Thread.sleep(millisec);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}
}
